// compents/storenumber/storenumber.js
import {storeBindingsBehavior} from 'mobx-miniprogram-bindings'
import {store} from '../../store/index'
Component({
  //通过storeBindingsBehavior实现自动绑定
  behaviors: [storeBindingsBehavior],
  storeBindings: {
    store,
    fields: {
      numa: 'numa',
      numb: 'numb',
      sum: 'sum'
      // numa:()=>store.numa
      // numa:(store)=>store.numa
    },
    actions: ['changeNuma']
  },
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    getInfo(e){
      this.changeNuma(e.target.dataset.step)
    }
  }
})